package com.tedu.day02.oop;

import java.util.Scanner;

public class BMI {
    public static void main(String[] args) {
        Scanner BM=new Scanner(System.in);
        System.out.println("请输入您的身高：");
        float height=BM.nextFloat();
        System.out.println("请输入您的体重：");
        int weight=BM.nextInt();
        float n=weight/(height*height);
        System.out.println("您的BMI为:"+n);
    }
}
